/*
 * @Description: 首页模块接口
 * @Author: Yong
 * @Date: 2021-09-24 16:27:03
 * @LastEditTime: 2021-09-27 15:32:34
 */
import { Http } from '../utils'
const API = {
    getSwiper: '/home/swiper',
    getGroups: '/home/groups',
    getNews: '/home/news?area=AREA%7C88cff55c-aaa4-e2e0',
}

/**
 * 获取轮播图
 */
export const getSwiper = function () {
    return Http('get', API.getSwiper)
}

/**
 * 获取租房小组
 */
export const getGroups = function () {
    return Http('get', API.getGroups, { area: 'AREA%7C88cff55c-aaa4-e2e0' })
}

/**
 * 获取最新咨询列表
 */
export const getNews = function () {
    return Http('get', API.getNews, { area: 'AREA%7C88cff55c-aaa4-e2e0' })
}